package com.hxzf.mvp.service.converter;

import com.hxzf.mvp.commons.BaseConverter;
import com.hxzf.mvp.dao.entity.User;
import com.hxzf.mvp.service.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户DTO/Entity对象转换器
 *
 * @author Kai
 * @date 2021/12/24 15:36
 */
@Mapper(componentModel = "spring")
public interface UserConverter extends BaseConverter<User, UserDto> {
    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);
}